//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.come.mouslisten;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.List;
import org.come.Frame.TestChildJframe;
import org.come.entity.Baby;
import org.come.until.MessagrFlagUntil;
import org.come.until.UserMessUntil;

public class ChangeBabyMouslisten implements MouseListener {
	private int path;

	public ChangeBabyMouslisten(int path) {
		this.path = path;
	}

	@Override
    public void mousePressed(MouseEvent e) {
		List<Baby> a = UserMessUntil.getMyListBaby();
		if (a != null && this.path < a.size()) {
			TestChildJframe.getTestChildJframe().getTestChildJpanel().ShowBaby((Baby)a.get(this.path));
		}
	}

	@Override
    public void mouseReleased(MouseEvent e) {
	}

	@Override
    public void mouseEntered(MouseEvent e) {
		final List<Baby> a = UserMessUntil.getMyListBaby();
		if (a == null || this.path >= a.size()) {
			return;
		}
		else {
			MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE12);
			return;
		}
	}

	@Override
    public void mouseExited(MouseEvent e) {
		MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE1);
	}

	@Override
    public void mouseClicked(MouseEvent e) {
	}
}
